
  <div style="margin:30px; border:1px solid #ccc; background:#eee;">
    <form name="addteacher_form" action="/People/addPupil" method="post" enctype="multipart/form-data">  
        <div>Добавить ученика </div>  
    
    
        <input type="hidden" value="10" />
        
        <div><input type="text" value="" name="pupil[name]" /> Имя </div> 
        <div><input type="text" value="" name="pupil[surname]" /> Фамилия </div>
         
        
        <div><textarea     name="pupil[small_info]" />  </textarea>Сжато</div>
        <div><textarea   name="pupil[info]" />  </textarea>Развёрнуто</div>
        <div><textarea   name="pupil[extra_info]" />  </textarea>Дополнительно</div>
        
        <input type="file" value="" name="photo[]" class="multi" accept="gif|jpg|png|jpe|jpeg"  />
        
        <br/>
        <input type="submit" value="{$submitButtonName}" />
    </form>
  </div>
  
  
    
    {if $people}  
     
      {if $people} 
      <form name="update_people_form" method="post" action="{$update_people_form_action}">
      {*}<input type="hidden" name="section_id" value="{$gallery.sections_id}" />{/*}
      <button style="margin:0 0 12px 0;">Сохранить</button>
        <table class="edit  ">
        <tbody>
        <tr>
          <th>Удалить
          </th>
          <th>Фото
          </th>
          <th>Имя/Фамилия
          </th>          
          <th>Сжато
          </th>
          <th>Развёрнуто
          </th>
          <th>Дополнительно
          </th>
        </tr>
        
        {foreach from=$people item=people_item}
        <tr class="">  
           <td> <input type="checkbox" name="people[{$people_item.people_id}][delete]" value="{$people_item.people_id}" /> 
              <input type="hidden" name="people[{$people_item.people_id}][people_id]" value="{$people_item.people_id}" /> 
          </td>
          <td>
              {foreach from=$people_item.photo item=img} 
                 <img src="../Image/people/{$img}" style="max-width:100px;" />  <br/>
              {/foreach}
          </td>  
           
          <td>     <input type="text" name="people[{$people_item.people_id}][name]" value="{$people_item.name}" /> <br/>
                  <input type="text" name="people[{$people_item.people_id}][surname]" value="{$people_item.surname}" /> 
          </td>
         
          
          <td>    <textarea name="people[{$people_item.people_id}][small_info]">{$people_item.small_info}</textarea>
          </td>
          <td>    <textarea name="people[{$people_item.people_id}][info]">{$people_item.info}</textarea>
          </td>
          <td>    <textarea name="people[{$people_item.people_id}][extra_info]">{$people_item.extra_info}</textarea>
          </td>
              
        </tr>
        {/foreach}
        </tbody>
        </table>  
      <button>Сохранить</button> 
      </form>
      {/if}
      
     
    {/if} 